--- /dev/null
+BEGIN:VCARD
+VERSION:3.0
+N:Oozy rat in a sanitary zoo;GCGCA8;;;
+ADR:N35 55.300 W86 51.700
+URL:http://www.geocaching.com/seek/cache_details.aspx?guid=cda94cd6-d657-49bd-8e7e-0031ef1b2613
+NOTE:The cache is not at the coordinates above. These coords will get you to the correct park and within 1/2 mile of the cache. The cache is within 35 feet of the trail. It is not handicapped accessible. It is a nice walk in the woods that is practical for all ages. There is no space in the container for trading items. You should bring a writing stick and bug spray is recommended.\nSo if the cache isn't at the above coordinates\, where is it? Too bad I hid a boot Too hot to hoot Never odd or even Do geese see God? "Do nine men interpret?" "Nine men\," I nod Rats live on no evil star Go hang a salami\, I'm a lasagna hog Now that it's intuitively obvious to even the most casual observer where the cache is\, turn on your geo-mojo and go find it. \n [IMG]\n\nHINT:\nThere Is No Hint
+END:VCARD
return;
}
- char* stripped_html = strip_html(s);
- char* p = gstrsub(stripped_html, "\n", "\\n");
- char* p2 = gstrsub(p, "<p>", "\\n");
- char* p3 = gstrsub(p2, ";", "\\;");
- gbfputs(p3, file_out);
- xfree(p);
- xfree(p2);
- xfree(p3);
- xfree(stripped_html);
+ char *string = strip_html(s);
+ QString stripped_html = string;
+ xfree(string);
+
+ stripped_html.replace("\n", "\\n", Qt::CaseInsensitive);
+ stripped_html.replace("<p>", "\\n", Qt::CaseInsensitive);
+ stripped_html.replace(";", "\\;");
+ stripped_html.replace(",", "\\,");
+
+ gbfputs(stripped_html, file_out);
}
static void
return;
}
- char* p = gstrsub(s, "\n", "\\n");
- gbfputs(p, file_out);
- xfree(p);
+ QString cleaned = s;
+ cleaned.replace("\n", "\\n", Qt::CaseInsensitive);
+ cleaned.replace(",", "\\,");
+ gbfputs(cleaned, file_out);
}
static void
QString s = rot13(wpt->gc_data->hint);
vcf_print(s);
} else {
- vcf_print(CSTR(wpt->gc_data->hint));
+ vcf_print(wpt->gc_data->hint);
}
gbfprintf(file_out, "\nEND:VCARD\n");